home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 147 / Gekkan Dennou Club - 2000.8 Vol. 147 (Japan).7z / Gekkan Dennou Club - 2000.8 Vol. 147 (Japan) (Track 1).bin / tools / zmc3v078 / zmc3v078.lzh / SRCSV078.LZH / STRUCTS.H < prev    next >
Text File  |  2000-01-12  |  2KB  |  70 lines

  1. #ifndef STRUCTS
  2.  
  3.     #define    FIRST_MTRK_SIZE        8192    /* MTrk reallocs par FIRST_MTRK_SIZE */
  4.     #define    MTRK_OVERFLOW_RANGE    1024    /* MTrk reallocs if memory lasts MTRK_OVERFLOW_RANGE */
  5.  
  6.     #include "config.h"
  7.  
  8.     typedef struct {
  9.         BYTE    ch;                        /* channel no. (set by @n,etc) */
  10.         BYTE    ch_;                    /* channel no. (set by (AMIDI1,1),etc: initial set) */
  11.         UWORD    chtype;                    /* FM=0 ADPCM=1 MIDI=$8000-3 PATTERN=$7FFF
  12.                                              CURRENTMIDI=$FFFF */
  13.  
  14.         UBYTE    trkv;                    /* track volume (0 - 128) */
  15.         UBYTE    trkf;                    /* freq (1 - 256) */
  16.         UBYTE    trks;                    /* PLAY(0) / RECORD(1) */
  17.         UBYTE    trkm;                    /* NORMAL(0) / RHYTHM(1) */
  18.  
  19.         UBYTE    mute;                    /* mute(0) / play(1) */
  20.  
  21.         char    *cmnt;                    /* comment */
  22.  
  23.         UBYTE    *zmd;                    /* ZMDdata pointer */
  24.         UBYTE    *zmdbuf;                /* ZMDdata buffer address */
  25.         DWORD    buforgsize;                /* original buffer size, set in (Mx,xxxx) */
  26.         DWORD    bufsize;                /* buffer size */
  27.         DWORD    nowsize;                /* buffer size used now */
  28.         DWORD    total;                    /* total steps (w/o loop)*/
  29.         DWORD    backinuse;                /* NOUSE==-1, USE=backtrk */
  30.     } TRKCHINF;
  31.  
  32.  
  33.     typedef struct {
  34.         DWORD    div;                    /* default timebase */
  35.         DWORD    div2;                    /* -1: default  0...: real timebase */
  36.         WORD    tempo;
  37.         BYTE    basech;
  38.         BYTE    debug;
  39.         BYTE    trkassign[80 + 1];
  40.         BYTE    backtrk[80 + 1];        /* track which will be used for [back ...] */
  41.         BYTE    fromtrk[80 + 1];        /* return track from [back...] */
  42.         BYTE    l1tie;
  43.         BYTE    renpmode;                /* 1 or 2: 1/2byte step/gate mode */
  44.         DWORD    maxtrk;                    
  45.         UBYTE    fmvol;                    /* fm_master_volume */
  46.         UBYTE    adpcmbank;                /* adpcm_bank */
  47.         BYTE    opmtone[55];            /* fm tone data */
  48.         BYTE    polpcm;                    /* pcm8 track */
  49.  
  50.         BYTE    qmode;                    /* quantize_mode */
  51.         WORD    gtreso;                    /* gatetime_resolution */
  52.  
  53.         DWORD    cmnt;                    /* comment start address(offset) */
  54.         UWORD    meter;                    /* meter: nnmm */
  55.         BYTE    key;                    /* key */
  56.         BYTE    majorflag;                /* 0: major 1: minor */
  57.         BYTE    currentmidiin;
  58.         BYTE    currentmidiout;
  59.         DWORD    trackmode;                /* 1: .TRACK  0: (Tn) */
  60.  
  61.         DWORD    z_cmn_flag;                /* which common trk command was used? */
  62.         int        backinuse;                /* [back..] is used in some track */
  63.     } COMMONINF;
  64.  
  65.  
  66.  
  67.  
  68.     #define STRUCTS
  69. #endif    /* STRUCTS */
  70.